#coding=utf-8
import urllib, re, time

def get_taotao(qq):
  url = 'http://taotao.qq.com/vc1/qz_first_utf8/def?uin=%s'%qq
  data = urllib.urlopen(url).read()
  data = eval(re.search(r'{.*}', data, re.I|re.S).group())['items']
  if not data:return None
  data = data[0]
  return data['pubDate'], data['title']
  

if __name__ == '__main__':
  i = 157339000
  while True:
    data = get_taotao(str(i))
    if data:print i, data[0], data[1]
    time.sleep(1)
    i = i + 1
    
